load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")

cc_library(
    name = "libestr",
    hdrs = ["include/libestr.h"],
    srcs = [
        "src/libestr.c",
        "src/string.c",
        "config.h",
    ],
    strip_include_prefix = "include",
    visibility = ["//visibility:public"],
)

cc_test(
    name = "smoke_test",
    srcs = ["smoke_test.c"],
    deps = [":libestr"],
)
